package com.zhixiang.xaec.service.safebase.safecultruetrain.impl;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.zhixiang.core.dao.BaseDao;
import com.zhixiang.core.service.impl.BaseServiceImpl;
import com.zhixiang.xaec.dao.safebase.safecultruetrain.TrainPlanTaskDao;
import com.zhixiang.xaec.entity.safebase.safecultruetrain.TrainPlanTask;
import com.zhixiang.xaec.service.safebase.safecultruetrain.TrainPlanTaskService;

@Service
public class TrainPlanTaskServiceImpl extends BaseServiceImpl<TrainPlanTask,Long> implements TrainPlanTaskService{

	@Override
	@Resource(type=TrainPlanTaskDao.class)
	public void setBaseDao(BaseDao<TrainPlanTask, Long> dao) {
		setDao(dao);
		
	}

	@Override
	public void delete(String [] ids) {

	       for(String id:ids){
	           getDao().remove(Long.valueOf(id));
	       }
	}

}
